package org.jeecg.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 审批流程主表
 * @Author: jeecg-boot
 * @Date:   2019-12-04
 * @Version: V1.0
 */
@Data
@TableName("pd_approval_process")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="pd_approval_process对象", description="审批流程主表")
public class ApprovalProcess {
    
	/**流程主表ID*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "流程主表ID")
	private String id;
	/**流程定义分类  如： pd001:请假流程  ,pd002: 合同申请 等等。。。  */
	@Excel(name = "流程定义分类  如： pd001:请假流程  ,pd002: 合同申请 等等。。。  ", width = 15)
    @ApiModelProperty(value = "流程定义分类  如： pd001:请假流程  ,pd002: 合同申请 等等。。。  ")
	private String pdType;
	/**流程定义的名称 */
	@Excel(name = "流程定义的名称 ", width = 15)
    @ApiModelProperty(value = "流程定义的名称 ")
	private String pdName;
	/**tenantId*/
	@Excel(name = "tenantId", width = 15)
    @ApiModelProperty(value = "tenantId")
	private Integer tenantId;
	/**节点数目*/
	@Excel(name = "节点数目", width = 15)
    @ApiModelProperty(value = "节点数目")
	private Integer nodeCount;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
	@Dict(dicCode = "id",dicText ="depart_name" ,dictTable = "sys_depart")
	private String departId;
	/**启动状态：启动：0 禁用：1*/
	@Excel(name = "启动状态：启动：0 禁用：1", width = 15)
    @ApiModelProperty(value = "启动状态：启动：0 禁用：1")
	@Dict(dicCode = "approval_status")
	private String pdStatus;
	/**创建者*/
	@Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新者*/
	@Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	/**备注信息*/
	@Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
	private String remarks;
	/**删除标记*/
	@Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
	private String delFlag;
	//接受岗位
	@TableField(exist = false)
	private List<String> receiveAttr;
}
